﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PToolingChargeList.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.ProdModel.PToolingChargeList" %>


<form id="pagerForm" method="post" action="ProdModel/PToolingChargeList.aspx">
<input type="hidden" name="ItemCode" value="<%=ItemCode %>" />
<input type="hidden" name="SupplerName" value="<%=SupplerName %>" />
<input type="hidden" name="orderField" value="<%=orderField %>" />
<input type="hidden" name="orderDirection" value="<%=orderDirection %>" />
<input type="hidden" name="pageNum" value="1" />
<input type="hidden" name="numPerPage" value="<%=numPerPage %>" />
</form>
<form id="form1" runat="server" method="post" action="ProdModel/PToolingChargeList.aspx" onsubmit="return navTabSearch(this);">
<div class="pageHeader">
    <div class="searchBar">
        <table class="searchContent">
            <tr>
                <td>
                    物料号： 
                </td>
                <td>
                    <input name="ItemCode" type="text" class="autocomplete" value="<%=ItemCode %>"  autocompletehref="<%=AutoCompleteRequestUrl %>?ajaxmethod=getoitmlist&showtype=101" swidth="300" />
                </td>
                <td>
                    供应商： 
                </td>
                <td>
                   <input name="SupplerName" type="text" value="<%=SupplerName %>"  class="autocomplete"   autocompletehref="<%=AutoCompleteRequestUrl %>?ajaxmethod=getsupplierlist" swidth="300"/>
                </td>
               
            </tr>
        </table>
        <div class="subBar">
            <ul>
                <li>
                    <div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
                </li>
            </ul>
        </div>
    </div>
</div>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
          <% if (HasPower(IHISCETeim.Web.Permission.新增))
             {%>
            <li><a class="add" href="ProdModel/PToolingChargeAdd.aspx" target="dialog" rel="PToolingChargeAdd"  title="新增分摊物料" height="400"><span>新增分摊物料</span></a></li>
           <%} %>
            <% if (HasPower(IHISCETeim.Web.Permission.新增))
             {%>
            <li><a class="add" href="ProdModel/PToolingChargeAddDetail.aspx?PTCID={sid_user}" target="dialog" rel="PToolingChargeAddDetail"  title="新增分摊相关物料" height="400"><span>新增分摊相关物料</span></a></li>
           <%} %>
            <% if (HasPower(IHISCETeim.Web.Permission.删除))
               {%>
            <li><a class="delete" href="sysAjaxDone.ashx?ajaxmethod=DeletePToolingCharge&id={sid_user}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
           <%} %>
           <% if (HasPower(IHISCETeim.Web.Permission.修改))
              {%>
            <li><a class="edit" href="ProdModel/PToolingChargeEdit.aspx?id={sid_user}" rel="PToolingChargeEdit" target="dialog" title="修改" max=false  mask=true  maxable=false  minable=false  resizable=false drawable=true  width="520" height="400" ><span>修改</span></a></li>
          <%} %>
           <% if (HasPower(IHISCETeim.Web.Permission.导出))
                {%>
            <li><a class="icon" href="ProdModel/ExportExecl/ExportPToolingCharge.aspx?orderField=<%=orderField %>&orderDirection=<%=orderDirection %>&ItemCode=<%=ItemCode %>&SupplerName=<%= Server.UrlEncode( SupplerName) %>" target="_blank" title="确定要导出吗?"><span>导出管控表</span></a></li>
            <%} %>
        </ul>
    </div>
    <asp:repeater id="rpMenu" runat="server">
        <HeaderTemplate>
        <table class="table" width="100%" layouth="138">
        <thead>
            <tr  >                
                <th width="80">
                    物料号
                </th>
                <th>
                    名称
                </th>
                <th  width="100">
                    供应商
                </th>
                <th>
                    设变后分摊物料
                </th>
                <th >
                    第一次采购时间
                </th>
                <th  >
                    最后一次采购时间
                </th>
                <th >
                    已采购数量
                </th>
                <th >
                    分摊数量
                </th>
                <th>
                    模具费
                </th>
                <th >
                    已分摊完/无需分摊
                </th>
            </tr>
        </thead>
        <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr target="sid_user" rel="<%# Eval("ID") %>" style="color:<%# Convert.ToBoolean( Eval("IsAdjust"))?"":"red" %>">
				<td><%# Eval("ItemCode")%></td>
				<td><%# Eval("ItemName")%></td>
				<td><%# Eval("SupplerName")%></td>
                <td><%# Eval("detailItemCode")%></td>
				<td><%# Eval("FirstBuyDate")%></td>
				<td><%# Eval("LastBuyDate")%></td>
				<td><%# Eval("CurrBuyNum")%></td>
                <td><%# Eval("NeedBuyNum")%></td>
                <td><%# Eval("mouldCharge")%></td>
                <td><%# Convert.ToBoolean(Eval("IsAdjust")) ? "是" : "否"%></td>
			</tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody>
         </table>
        </FooterTemplate>
    </asp:repeater>
    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
               <%=SetnumPerPage() %>
            </select>
            <span>条，共<%=TotalCount%>条</span>
        </div>
        <div class="pagination" targettype="navTab" totalcount="<%=TotalCount%>" numperpage="<%=numPerPage %>"
            pagenumshown="10" currentpage="<%=pageNum %>">
        </div>
    </div>
</div>
</form>
